#pragma once
#include<assert.h>
#include<stdlib.h>
#include<string.h>
#include<stdio.h>

#define MAX_NAME 10
#define MAX_SEZ 4
#define MAX_TELE 12
#define MAX_ADDR 20

#define INC_SZ 2
#define DEFAULT_SZ 3

typedef struct PeopleInfo
{
	char name[MAX_NAME];
	int age;
	char sex[MAX_SEZ];
	char tele[MAX_TELE];
	char addr[MAX_ADDR];
}PeopleInfo;

typedef struct Contact
{
	PeopleInfo* data;
	int size;
	int capacity;
}Contact;


void ContactInit(Contact* pc);

void ContactAdd(Contact* pc);

void ContactDelete(Contact* pc);

void ContactSearch(Contact* pc);

void ContactModify(Contact* pc);

void ContactShow(Contact* pc);

void ContactSort(Contact* pc);

void ContactDestroy(Contact* pc);

void ContactSave(Contact* pc);

void ContactLode(Contact* pc);